package com.ftg.shopping.shopcar.mapper;


import com.ftg.shopping.config.LayuiPage;
import com.ftg.shopping.shopcar.entity.sp_cartshop;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface shopcarMapper {

    @Select("select * from sp_cartshop")
    List<Map<String,Object>> showAll(int page, int limit);


    @Select("select * from sp_cartshop where userid=#{userid}  limit #{page},#{limit}")
    List<Map<String,Object>> showAll3(int page, int limit, String userid);

    @Select("select * from sp_cartshop")
    List<Map<String,Object>> showAll2();


    @Delete("delete from sp_cartshop where id=#{id}")
    int deleteshopcar(int id);
}
